using UnityEngine;
using System.Collections;

public class PlayerHeadMovement : MonoBehaviour {
	
	float playerRotation = 5f;

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		
		float rotation;
		rotation = Input.GetAxis ("Mouse Y") * playerRotation * -1f;
		transform.Rotate (rotation,0,0);
	
	}
}
